﻿using BCCommon;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace BCDto.Common.UserBankCard
{
    /// <summary>
    /// 银行卡解绑请求
    /// </summary>
    public class UserBankUntyingRequestDto
    {
        /// <summary>
        /// 用户银行卡ID
        /// </summary>

        [Display(Name = "用户银行卡ID")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public long UserBankCardId { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        [Display(Name = "手机号")]
        [Required(ErrorMessage = "{0} 不能为空")]
        [StringLength(11, MinimumLength = 11, ErrorMessage = "{0} 长度为 {1} 个数字")]
        [RegularExpression(RegexPatterns.PHONE, ErrorMessage = "{0} 格式不正确")]
        public string Phone { get; set; }

        /// <summary>
        /// 验证码
        /// </summary>
        [Display(Name = "验证码")]
        [Required(ErrorMessage = "{0} 不能为空")]
        [StringLength(6, ErrorMessage = "{0} 长度为 {1} 个数字", MinimumLength = 6)]
        [RegularExpression(RegexPatterns.SIX_PASS_CODE, ErrorMessage = "{0} 长度为 6 个数字")]
        public string PassCode { get; set; }

    }
}
